<template>
    <div>
        <p>我是儿子组件--{{ msg }}</p>
        <Grandson></Grandson>
    </div>
</template>

<script>
import Grandson from './Grandson.vue';
export default {
    data() {
        return {
        }
    },
    inject: ['msg'],
    components: {
        Grandson
    }
}
</script>
<style scoped></style>